<ng-container *ngIf="!outlet.isActivated">
    <div class="px-5 py-2">
        <!-- <div style="position: relative;"> -->
        <!-- <h4 style="font-size: 1.1rem;font-weight:400;" class="mt-5 mb-5 text-center">**公司车销交款单</h4> -->
        <!-- <div style="width:100px;height:100px;background:#ccc; position:absolute;top: 0;right: 0;"></div> -->
        <!-- </div> -->
        <div class="row">
            <div class="input-group mb-3 col">
                <div class="input-group-prepend">
                    <span class="input-group-text bg border-0">广告标题</span>
                </div>
                <input [(ngModel)]="search.params.name" type="text" class="bg border-l-0 border-r-0 radius-0 border-t-0 form-control"
                    style="margin-right: 166px;">
            </div>
        </div>
        <div class="row">
            <div class="input-group mb-3 col">
                <div class="input-group-prepend">
                    <span class="input-group-text bg border-0">轮播图片</span></div>
                <span class="input-group-text bg border-0">
                    <button tsBtn loading color="white" style="height:35px;">上传图片</button>
                </span>
            </div>
            <div class="input-group mb-3 col">
                <div class="input-group-prepend">
                    <span class="input-group-text bg border-0">建议像素750*240</span>
                </div>
                <img class="bg-white" style="width:150px;height: 100px;" src="">
            </div>
            <div class="input-group mb-3 col"></div>
            <div class="input-group mb-3 col"></div>
        </div>

    </div>
    <div class="px-5 py-2">
        <div class="row">
            <div class="input-group mb-3 col">
                <div class="input-group-prepend">
                    <span class="input-group-text bg border-0">正文</span></div>
                <textarea style="width:100%;height: 180px;margin:0px 110px;position: relative;top:-22px;right: 57px"></textarea>
            </div>
        </div>
    </div>
    <div class="px-5 py-2">
        <div class="form-group" style="margin-bottom:0px">
            <label class="col-form-label label-required text-right mr-3">发布范围</label>
            <ts-checkbox class="mr-5" *ngFor="let sel of payTerms;index as i" color="secondary" [value]="i+1"
                [(ngModel)]="sel.name">
                {{sel.beforeInputLabel}}
                <input *ngIf="sel.hasInput" [(ngModel)]="sel.inputValue" class="border-l-0 border-r-0 radius-0 border-t-0 form-control bg-light"
                    style="width:50px !important;" type="text"> {{sel.afterInputLable}}
            </ts-checkbox>
            <div class="row" style="position:relative;top:-36px;right:-300px">
                <div class="col col-4">
                    <select [(ngModel)]="goods.goodsParentType" class="bg-white custom-select border-0" title="请选择起始日期">
                        <option>1</option>
                    </select>
                </div>
                <div class="col col-4">
                    <select [(ngModel)]="goods.goodsParentType" class="bg-white custom-select border-0" title="请选择起始日期">
                        <option>1</option>
                    </select>
                </div>
            </div>
        </div>
        <div class="form-groups">

            <label class="col-form-label label-required text-right mr-3">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</label>
            <ts-checkbox class="mr-5" *ngFor="let sel of rebateTerm;index as i" color="secondary" [value]="i+1"
                [(ngModel)]="sel.name">
                {{sel.beforeInputLabel}}
                <input *ngIf="sel.hasInput" [(ngModel)]="sel.inputValue" class="border-l-0 border-r-0 radius-0 border-t-0 form-control bg-light"
                    style="width:50px !important;" type="text"> {{sel.afterInputLable}}
            </ts-checkbox>
            <div style="margin:0px 200px;position: relative;top: -33px; right: -28px;">
                <button tsBtn loading color="success">选择客户</button>
            </div>
        </div>
        <div class="form-group">
            <label class="col-form-label label-required text-right mr-3">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</label>
            <ts-checkbox class="mr-5" *ngFor="let sel of freightTerm;index as i" color="secondary" [value]="i+1"
                [(ngModel)]="sel.name">
                {{sel.beforeInputLabel}}
                <input *ngIf="sel.hasInput" [(ngModel)]="sel.inputValue" class="border-l-0 border-r-0 radius-0 border-t-0 form-control bg-light"
                    style="width:50px !important;" type="text"> {{sel.afterInputLable}}
            </ts-checkbox>
        </div>
    </div>
    <div class="px-4 bg-light my-5">
        <div class="row">
            <div class="input-group mb-3 col col-7">
                <div class="input-group-prepend">
                    <span class="input-group-text bg border-0">发布有效期</span>
                </div>
                <select [(ngModel)]="goods.goodsParentType" class="bg-white custom-select border-0" title="请选择起始日期">
                    <option>1</option>
                </select>
            </div>
        </div>
    </div>
    <div class="my-5 m-btn text-right pr-5">
        <button routerLink="/sales/homecarousel" tsBtn color="white">返回列表</button>
        <button *ngIf="goods.id===0" tsBtn loading color="success" (submit)="confirmInsert($event)">确定</button>
        <button routerLink="/purchase/contract" tsBtn color="danger">取消</button>
    </div>
</ng-container>

<router-outlet #outlet="outlet"></router-outlet>